import RepairLayout from '@/views/repair/RepairLayout.vue'

const repairRoutes = [
  {
    path: '/repair',
    component: RepairLayout,

    children: [
      {
        path: 'work-order',
        component: () => import('@/views/repair/WorkOrderManagement.vue'),
        meta: { title: '维修工单管理' }
      },
      {
        path: 'repair-record',
        component: () => import('@/views/repair/RepairRecord.vue'),
        meta: { title: '维修记录填写' }
      },
      {
        path: 'parts-request',
        component: () => import('@/views/repair/RepairRecord.vue'),
        meta: { title: '零部件申请' }
      },
      {
        path: 'repair-progress',
        component: () => import('@/views/repair/RepairProgress.vue'),
        meta: { title: '维修进度' }
      },
      {
        path: 'repair-report',
        component: () => import('@/views/repair/RepairReport.vue'),
        meta: { title: '维修报表' }
      },
      {
        path: 'profile',
        component: () => import('@/views/repair/ProfileManagement.vue'),
        meta: { title: '个人信息管理' }
      }
    ]
  }
]

export default repairRoutes